﻿using System.Collections.Generic;
using com.guojin.core.io.message;
using com.guojin.mj.net.message.game;
using com.guojin.mj.net.message.login;
using UnityEngine;
using UnityEngine.UI;

// 不允许挂在到任何节点上
public class GameData
{
    private static GameData instance;
    public static GameData GetInstance()
    {
        if (instance == null)
            instance = new GameData();
        return instance;
    }

    public List<Message> messagelist;
    public bool CanAddMessage = false; //是否可以开始往messagelist存消息了


    public string avatar; //玩家头像地址

    public int locationIndex; //玩家号
    public string longitude; //经度
    public string latitude; //维度
    public string place;                    
    public string announcement; //广播
    public string userID; //玩家ID
    public string userIP; //玩家的IP
    public string userName;      //玩家名字
    public string voteUserId;    //发起投票的玩家ID  (用于将自己显示为同意)

    public int level; //玩家代理等级
    public string roomHostUserID;
    public int gold;
    public int Zhuan;//钻石
    public bool isClickThisChapter = true;

    public Dictionary<string, int> clubDic = new Dictionary<string, int>();               
    public Dictionary<string, int> lianMengDic = new Dictionary<string, int>();
   
    public Dictionary<int ,GameObject>JoinPageS=new Dictionary<int, GameObject>();//申请带入金弹窗
    public bool msgRedPoint = false;

    public void SetIsClickThisChapterTrue()
    {
        isClickThisChapter = true;
    }
}